package org.utils.ui.actioncommand;
/**
 * @author Mektoub
 *
 * To change this generated comment edit the template variable "typecomment":
 * Window>Preferences>Java>Templates.
 * To enable and disable the creation of type comments go to
 * Window>Preferences>Java>Code Generation.
 */
public abstract class AbstractActionCommand implements ActionCommand
{
  private String actionCommandName = null;

  /**
   * Constructor AbstractActionCommand.
   * @param name The name of the action command
   */
  public AbstractActionCommand(String name)
  {
	  setActionCommandName(name);
  }

  /**
   * @see org.utils.ui.actioncommand.ActionCommand#setActionCommandName(String)
   */
  public void setActionCommandName(String name)
  {
	  actionCommandName = name;
  }
  /**
   * @see org.utils.ui.actioncommand.ActionCommand#getActionCommandName()
   */
  public String getActionCommandName()
  {
	  return actionCommandName;
  }

  public boolean isUndoable() { return false; }
  public abstract void execute(Object obj1, Object obj2) throws ActionCommandException;
  public void undo() {}
  public void redo() {}
}
